package com.mesnac.comm.page;
/**
 * 
* @ClassName: Page
* @Description: 用于分页
* @author chilei chil07@mesnac.com
* @date Sep 11, 2012 9:01:41 AM
*
 */
public class Page {

	private boolean hasPrePage;
	private boolean hasNextPage;
	private int everyPage;
	private long totalPage;
	private int currentPage;
	private int beginIndex;
	private long totalCount;
	public Page(){
		
	}
	
	public Page(int everyPage){
		this.everyPage = everyPage;
	}
	public Page(boolean hasPrePage,boolean hasNextPage,
			int everyPage,long totalPage,int currentPage,
			int beginIndex,long totalCount){
		this.hasPrePage = hasPrePage;
		this.hasNextPage = hasNextPage;
		this.everyPage = everyPage;
		this.totalPage = totalPage;
		this.currentPage = currentPage;
		this.beginIndex = beginIndex;
		this.totalCount = totalCount;
	}
	public boolean isHasPrePage() {
		return hasPrePage;
	}
	public void setHasPrePage(boolean hasPrePage) {
		this.hasPrePage = hasPrePage;
	}
	public boolean isHasNextPage() {
		return hasNextPage;
	}
	public void setHasNextPage(boolean hasNextPage) {
		this.hasNextPage = hasNextPage;
	}
	public int getEveryPage() {
		return everyPage;
	}
	public void setEveryPage(int everyPage) {
		this.everyPage = everyPage;
	}
	public long getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(long totalPage) {
		this.totalPage = totalPage;
	}
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	public int getBeginIndex() {
		return beginIndex;
	}
	public void setBeginIndex(int beginIndex) {
		this.beginIndex = beginIndex;
	}
	public long getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(long totalCount) {
		this.totalCount = totalCount;
	}
}
